// EndPointFM.h: interface for the CEndPointFM class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ENDPOINTFM_H__D53B811A_3250_43DE_935A_7A17A81C39E4__INCLUDED_)
#define AFX_ENDPOINTFM_H__D53B811A_3250_43DE_935A_7A17A81C39E4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "PPEndPoint.h"
#include "ConvertUnits.h"	// Added by ClassView

class CEndPointFM : public PPEndPoint 
{
public:
	_ConnectionPtr m_pUnitsCon;
	CString m_UnitsM;
	CString m_UnitsF;
	bool WriteEndPointFM();
	CString m_RCase;
	CString m_LCase;
	CEndPointFM();
	virtual ~CEndPointFM();

private:
	CString m_strOldUnitsM;
	CString m_strOldUnitsF;
	int GetUnitsCoef(_RecordsetPtr& pRsFM);
	ConvertUnits m_ConvertF;
	ConvertUnits m_ConvertM;
	CString m_strOldNode;
	void WriteField(_RecordsetPtr &pRsFM,CString str);
	CString m_strNode;
	void WriteDL(_RecordsetPtr &pRsFM);
	void OpenDLTable();
	_RecordsetPtr m_pRsZNDLYDL;
	_RecordsetPtr m_pRsDL;
    void GetEndPointFM(_RecordsetPtr& pRs);
};

#endif // !defined(AFX_ENDPOINTFM_H__D53B811A_3250_43DE_935A_7A17A81C39E4__INCLUDED_)
